#
#	LimboEngine
#
#	Author: Thomas Lim
#	Copyright(c) 2012
#
#	Makefile
#
CC 	= g++
CFLAGS 	= -Wall -Wextra -g
LIBS	=
TARGET	= LimboEngine
SOURCEDIR = src/
OBJECTDIR = obj/
SOURCES = $(wildcard src/*.cpp)
OBJECTS = $(patsubst src/%.cpp, obj/%.o, $(SOURCES))

.PHONY: all
all: $(TARGET)

$(TARGET): $(OBJECTS)
	$(CC) $(CFLAGS) $(OBJECTS) -o $@ $(LIBS)

$(OBJECTS): %.o: $(SOURCES)
	$(CC) $(CFLAGS) -c $(LIBS) $(@:obj/%.o=src/%.cpp) -o $@

.PHONY: clean
clean:
	$(RM) $(TARGET) $(OBJECTS)
